package com.springboot;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.util.StopWatch;

/**
 * @author yexi
 */
@SpringBootApplication
@Slf4j
public class LoggingApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = null;
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        context = SpringApplication.run(LoggingApplication.class, args);
        stopWatch.stop();
        log.info("服务已启动，启动耗时：{}秒\n", stopWatch.getTotalTimeSeconds());
    }

}
